<br>
<?php 

require_once 'tools/db/DbUtils.php';
require_once 'tools/service/tools.php';
$obj_utils=new DbUtils();
$tools=new Tool($dbUtils);
$obj_utils->connect();
$tabRunners=$obj_utils->getAllTeams();

	if($tabRunners!=0){
	?>
	<table class="principale">
		<tr><th colspan="5"><h2>Inscriptions Précédentes</h2></th></tr>
		<tr><th>Ordre d'inscription</th><th><?php If (Config::team) {echo "Formation";}else{echo "Nom prénom";}?></th><th>Dossard</th></tr>
	
	<?php 
	$cptF=1;
	for($i=0;$i<sizeof($tabRunners);$i++){?>
		<tr class="list">
			<td class="listing" style="text-align:center; "><?php echo($i+1); ?></td>
			<td class="listing"><?php echo( $tools->getFormation($tabRunners[$i])); ?></td>
			<td class="listing" align="center"><?php echo($tabRunners[$i]['dossard']); ?></td>
		</tr>
	
	<?php } ?>
	</table>
<?php
	
	}
	
	$obj_utils->close();

?>
